.class Lcom/waiqin365/lightapp/kaoqin/b/ar;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kaoqin/b/am;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/b/am;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 5

    const/16 v4, 0x1478

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/b/am;->f(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->getHeaderViewsCount()I

    move-result v0

    sub-int v0, p3, v0

    if-ltz v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/b/am;->h(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/a/k;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/a/k;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/b/am;->h(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/a/k;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/a/k;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/b/am;->b(Lcom/waiqin365/lightapp/kaoqin/b/am;)Z

    move-result v1

    if-eqz v1, :cond_6

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "data_id"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->e:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "tab_type"

    const-string/jumbo v3, "3"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->g:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const v3, 0x7f08034c

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_2
    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v0

    invoke-virtual {v0, v1, v4}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->startActivityForResult(Landroid/content/Intent;I)V

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kaoqin/b/am;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/app/FragmentActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_3
    const-string/jumbo v2, "2"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->g:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const v3, 0x7f080394

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_1

    :cond_4
    const-string/jumbo v2, "3"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->g:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const v3, 0x7f080350

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_1

    :cond_5
    const-string/jumbo v2, "4"

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->g:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const v3, 0x7f08039a

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_1

    :cond_6
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "data_id"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->e:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "tab_type"

    const-string/jumbo v3, "2"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->g:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_8

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const v3, 0x7f08034b

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_7
    :goto_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v0

    invoke-virtual {v0, v1, v4}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_2

    :cond_8
    const-string/jumbo v2, "2"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->g:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_9

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const v3, 0x7f080393

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_3

    :cond_9
    const-string/jumbo v2, "3"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->g:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_a

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const v3, 0x7f08034f

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_3

    :cond_a
    const-string/jumbo v2, "4"

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/e;->g:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/ar;->a:Lcom/waiqin365/lightapp/kaoqin/b/am;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/am;->a(Lcom/waiqin365/lightapp/kaoqin/b/am;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;

    move-result-object v2

    const v3, 0x7f080399

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentCheckActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_3
.end method
